package com.sansui.Strategy;

public class Cat implements Comparable{

	private Comparator comparator = new CatHeightComparator();
	
	public Cat(int height, int weight) {
		Height = height;
		Weight = weight;
	}

	private int Height;
	
	private int Weight;

	public int getHeight() {
		return Height;
	}

	public void setHeight(int height) {
		Height = height;
	}

	public int getWeight() {
		return Weight;
	}

	public void setWeight(int weight) {
		Weight = weight;
	}

	@Override
	public boolean compare(Comparable obj) {
		
		return comparator.compare(this, obj);
	}

}
